package com.yc.snack.biz.impl;

import com.yc.snack.biz.IAdminInfoBiz;
import com.yc.snack.dao.IAdminInfoDao;
import com.yc.snack.dao.impl.AdminInfoDaoImpl;
import com.yc.snack.entity.AdminInfo;
import com.yc.snack.util.StringUtil;

public class AdminInfoBizImpl implements IAdminInfoBiz {

    @Override
    public AdminInfo login(AdminInfo adminInfo) {
        if(StringUtil.checkNull(adminInfo.getAname(), adminInfo.getPwd())) {
            return null;
        }
        IAdminInfoDao adminInfoDao = new AdminInfoDaoImpl();
        return adminInfoDao.login(adminInfo);
    }
}
